<% title "Attendance Information" %>
<%= render :partial => 'breadcrumbs' %>
<table class="form">
	<tr>
		<th colspan="3">Personal Information</th>
	</tr>
	<tr>
		<td width="3%">1.</td>
		<td width="13%"><strong>Name :</strong></td>
		<td><%=@employee.name%></td>
	</tr>
	<tr>
		<td>2.</td>
		<td><strong>Employee No :</strong></td>
		<td><%=@employee.employee_number%></td>
	</tr>
	<tr>
		<td>3.</td>
		<td><strong>Department : </strong></td>
		<td><%=@employee.department.title unless @employee.department.nil?%></td>
	</tr>
	<tr>
		<td>4.</td>
		<td><strong>Position : </strong></td>
		<td><%=@employee.position.title unless @employee.position.nil?%></td>
	</tr>
	<tr>
		<td>5.</td>
		<td><strong>Gred : </strong></td>
		<td><%=@employee.position.gred.title unless @employee.position.gred.nil?%></td>
	</tr>
</table>


<%= error_messages_for 'employee' %>
<% form_for :employee, @employee, 
:url => { :controller => 'myoffice', :action => "change_my_password" } do  %>
<table class="form">
		<tr>
			<th colspan="3">Change Password</th>
		</tr>
		<tr>
			<td width="3%">1.</td>
			<td width="13%"><strong>Password</strong></td>
			<td><%= password_field "employee", "password", :size => 20 %><br />
</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td><strong>Password Confirmation</strong></td>
			<td><%= password_field "employee", "password_confirmation", :size => 20 %></td>
		</tr>
		<tr>
		  <td>&nbsp;</td>
		  <td>&nbsp;</td>
		  <td><%=submit_tag 'Change' %></td>
  </tr>
	</table>
<% end %>
